<?php keke_tpl_class::checkrefresh('task/dtender/admin/tpl/task_edit_basic', '1460008804' );?><!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_K['charset'];?>">
<title>keke admin</title>


<link href="tpl/css/admin_management.css" rel="stylesheet" type="text/css" />
<link href="tpl/css/button/stylesheets/css3buttons.css" rel="stylesheet" type="text/css" />
<link title="style1" href="tpl/skin/default/style.css" rel="stylesheet" type="text/css" />
<!--<link title="style2" href="tpl/skin/light/style.css" rel="stylesheet" type="text/css" />-->
<!-- <link href="tpl/js/jquery.qtip.min.css" rel="stylesheet" type="text/css" /> -->
<script type="text/javascript" src="tpl/js/jquery.js"></script>
<script type="text/javascript" src="tpl/js/keke.js"></script>
</head>
<body class="frame_body">
<div class="frame_content">
<div id="append_parent"></div>
<div class="page_title">
    	<h1><?php echo $model_info['model_name'];?><?php echo $_lang['manage'];?></h1>

    </div>
 <div class="box post">
        <div class="tabcon">
        	<div class="title"><h2><?php echo $_lang['edit_task'];?></h2></div>
            <div class="detail">
                <form method="post" action="index.php?do=model&view=edit&model_id=<?php echo $model_id?>&task_id=<?php echo $task_id?>" enctype="multipart/form-data" id="frm1">
<input type="hidden" name="pk[task_id]" value="<?php echo $task_id;?>">
<input type="hidden" name="model_id" value="<?php echo $model_id;?>">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
                      		<th colspan="2">
                      			该任务于<span style="color:red"><?php echo date('Y-m-d  H:i:s',$task_info[start_time]) ?></span>发布，目前状态为：<span style="color:red"><?php echo $status_arr[$task_info['task_status']];?></span>
                      		</th>
                      	</tr>
<tr>
                      		<th >
                      			任务可进行如下操作:
                      		</th>
<td>
<?php if($operate) { ?>
<?php if(is_array($operate)) { foreach($operate as $k => $v) { ?>
<button type="submit" name="sbt_act" class="positive primary button"  value="<?php echo $k;?>" onclick="return confirm('<?php echo $_lang['confirm'];?><?php echo $v;?>?')"><span class="lock icon"></span><?php echo $v;?></button>
<?php } } ?>
<?php } else { ?>
无
<?php } ?>
</td>
                      	</tr>
<tr>
<th colspan="2">
<?php if(is_array($ops)) { foreach($ops as $v) { ?>
    <a href="index.php?do=<?php echo $do?>&model_id=<?php echo $model_id;?>&view=edit&task_id=<?php echo $task_id;?>&op=<?php echo $v;?>" class="button <?php if($op==$v) { ?>here<?php } ?>"><?php echo $_lang['b_task_'.$v];?></a>
       		                   <?php } } ?>
</th>
</tr>
                      <tr>
                        <th scope="row" width="130"><?php echo $_lang['task_name'];?></th>
                        <td>
                        <input type="text" value="<?php echo $task_info['task_title'];?>" name="fds[task_title]" id="title" class="txt" style=" width:260px;"
 limit='required:true;len:2-50' msg=<?php echo $_lang['title_err'];?> msgarea='msg_title' tips=<?php echo $_lang['username_3_12_characters'];?>>
 <span id='msg_title'></span>
 	&nbsp;&nbsp;&nbsp;
 </td>
                      </tr>
  <?php if($task_info['ext_fields']) { ?>
  <?php if(is_array($task_info['ext_fields'])) { foreach($task_info['ext_fields'] as $k => $v) { ?>
                      <tr>
                        <th scope="row" width="130"><?php echo $v['f_name'];?><?php echo $_lang['zh_mh'];?></th>
                        <td>
                         <input type="text" class="txt" name="ext_fds[<?php echo $v['f_code'];?>]" value="<?php echo $v['data'][$v['f_code']]['content'];?>" size="50" 
 <?php if($v['f_required']) { ?> limit="required:true"<?php } ?> 
 msg="<?php echo $v['f_warning'];?>" tips="<?php echo $v['f_tips'];?>" msgArea="<?php echo $v['f_code'];?>_msg">
                        </td>
                      </tr>
  <?php } } ?>
  <?php } ?>
  <tr>
                        <th scope="row">
                        	发布者
</th>
                        <td>
                        	<b><?php echo $task_info['username'];?></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<b><?php echo $_lang['mobile'];?>：<?php echo $task_info['contact'];?></b>
</td>
  </tr>
   <tr>
                        <th scope="row">
                        	<?php if($task_info['task_status']==1||$task_info['task_status']==0) { ?>
发布时间
<?php } else { ?>
开始时间
<?php } ?><?php echo $_lang['zh_mh'];?></th>
                        <td><?php if($task_info['start_time']){echo date('Y-m-d H:i:s',$task_info['start_time']); } ?>&nbsp;&nbsp;</td>
  </tr>
   <tr>
                        <th scope="row">竞标截止时间<?php echo $_lang['zh_mh'];?></th>
                        <td>
 <input name="txt_task_day"   onclick="showcalendar(event, this, 0)" class="txt" size="30" value="<?php echo $task_sub_time;?>" type="text" id="txt_task_day"   msgArea="span_task_day" 
   	limit="required:true;type:date" msg="日期格式错误" max=""/>

 <span id="span_task_day" class="ml_5"></span>
</td>
   </tr>
   <tr>
                        <th scope="row" width="130"><?php echo $_lang['task_type'];?></th>
                        <td>
                       		 <?php echo $model_list[$model_id]['model_name']?>
                        </td>
                      </tr>
     <tr>
                        <th scope="row" width="130"><?php echo $_lang['task_status'];?></th>
                        <td>
                       		<?php echo $task_status[$task_info['task_status']]?>
                        </td>
                      </tr>
     <tr>
                        <th scope="row" width="130"><?php echo $_lang['industry'];?></th>
                        <td>
                        	<select name="fds[indus_id]">
        						<option value="0"><?php echo $_lang['top'];?></option>
<?php if(is_array($indus_option_arr)) { foreach($indus_option_arr as $v) { ?>
 <?php echo $v;?>
<?php } } ?>
</select>　
                        </td>
                      </tr>

    <tr>
                        <th scope="row" width="130"><?php echo $_lang['attachment_task'];?></th>
                        <td>
                         <?php if($file_list) { ?>
        					<?php if(is_array($file_list)) { foreach($file_list as $file) { ?>
    							<a target="_blank" href="<?php echo  imageClass::absUrl($file[save_name]); ?>"><?php echo $file['file_name'];?></a>&nbsp;&nbsp;&nbsp;
    						<?php } } ?>
<?php } else { ?>
<?php echo $_lang['no_attachment'];?>
<?php } ?>
                        </td>
                      </tr>
                      <tr>
                        <th scope="row"><?php echo $_lang['description'];?></th>
                        <td>
                        	<textarea id="system-create-location_1"  name="fds[task_desc]"><?php echo $task_info['task_desc'];?></textarea>
 <script type="text/javascript" src="<?php echo $_K['siteurl'];?>/static/js/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="<?php echo $_K['siteurl'];?>/static/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="<?php echo $_K['siteurl'];?>/static/js/ueditor/lang/zh-cn/zh-cn.js"></script>
 <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('system-create-location_1', {
            //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
        	initialFrameWidth: '80%',
        	initialFrameHeight: '400'
        });
    </script>
</td>
                      </tr>


                      <tr>
                        <th scope="row"><?php echo $_lang['task_cash'];?></th>
                        <td>
                        	<?php if($task_info['task_cash_coverage']) { ?>
                        	<select name='fds[task_cash_coverage]'>
        						<?php if(is_array($cash_rule_arr)) { foreach($cash_rule_arr as $value) { ?>
<option <?php if($task_info['task_cash_coverage']==$value['cash_rule_id']) { ?>selected="selected"<?php } ?> value="<?php echo $value['cash_rule_id']?>"><?php  echo keke_curren_class::output(floatval($value['start_cove']),-1);  ?>-<?php  echo keke_curren_class::output(floatval($value['end_cove']),-1);  ?></option>
<?php } } ?>
</select>
<?php } else { ?>
<input name="fds[budget]"   class="txt" size="30" value="<?php echo $task_info['budget'];?>" type="text" id="txt_budget"   msgArea="span_txt_budget" onkeyup="clearstr(this)"
   	limit="required:true;type:int" msg="金额格式错误" max=""/>

 <span id="span_span_txt_budget" class="ml_5"></span>
<?php } ?>
                        </td>
                      </tr>
                       <tr>
                        <th scope="row">SEO<?php echo $_lang['title'];?><?php echo $_lang['zh_mh'];?></th>
                        <td><textarea cols="70" rows="2"  name="fields[seo_title]" value="<?php echo $task_info['seo_title'];?>"><?php echo $task_info['seo_title'];?></textarea></td>
                     </tr>

                     <tr>
                        <th scope="row">SEO<?php echo $_lang['keywords'];?><?php echo $_lang['zh_mh'];?></th>
                        <td><textarea cols="70" rows="2"  name="fields[seo_keyword]" value="<?php echo $task_info['seo_keyword'];?>"><?php echo $task_info['seo_keyword'];?></textarea></td>
                     </tr>

                      <tr>
                        <th scope="row">SEO<?php echo $_lang['description'];?><?php echo $_lang['zh_mh'];?></th>
                        <td><textarea cols="70" rows="3" name="fields[seo_desc]" value="<?php echo $task_info['seo_desc'];?>"><?php echo $task_info['seo_desc'];?></textarea></td>
                     </tr>
                      <tr>
                        <th scope="row">&nbsp;</th>
                        <td>
                            <div class="clearfix padt10">
                            	<button class="positive primary pill button" type="submit" name="sbt_edit" value=<?php echo $_lang['submit'];?> onclick="return checkForm(document.getElementById('frm1'))"><span class="check icon"></span><?php echo $_lang['submit'];?></button>


                            </div>
                        </td>
                      </tr>
                    </table>

                </form>
            </div>
        </div>

    </div>
</div>
<script type="text/javascript" src="../lang/<?php echo $language?>/script/lang.js"></script>
<script type="text/javascript" src="tpl/js/form_and_validation.js"></script>
<!-- <script type="text/javascript" src="tpl/js/jquery.qtip.min.js"></script> -->
<script type="text/javascript" src="tpl/js/script_calendar.js"></script>
<script type="text/javascript" src="tpl/js/artdialog/artDialog.js"></script>
<script type="text/javascript" src="tpl/js/artdialog/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="tpl/js/artdialog/artDialog.iframeTools.source.js"></script>
<script type="text/javascript" src="tpl/js/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="tpl/js/styleswitch.js"></script>
<script type="text/javascript" src="tpl/js/table.js"></script>
<script type="text/javascript">
var sessionId = "<?php echo $xyq = session_id(); ?>";
function cdel(o, s) {
d = art.dialog;
var c = "<?php echo $_lang['you_comfirm_delete_operate'];?>";
if (s) {
c = s;
}
d.confirm(c, function() {
window.location.href = o.href;
});
return false;
}
function cpass(o, s, type,pay=1) {
d = art.dialog;
if (type == 1) {
if(pay){
var c = "确认审核通过？";
}else{
var c = "<font color='red'>该任务尚未付款</font>,确认审核通过？";
}
} else {
var c = "确认审核失败？";
}
if (s) {
c = s;
}
d.confirm(c, function() {
window.location.href = o.href;
});
return false;
}
function cfreeze(o, s, type) {
d = art.dialog;
if (type == 1) {
var c = "确认冻结？";
}
if (s) {
c = s;
}
d.confirm(c, function() {
window.location.href = o.href;
});
return false;
}
function crecomm(o, s, type) {
d = art.dialog;
if (type == 1) {
var c = "确认推荐？";
} else {
var c = "确认取消推荐？";
}
if (s) {
c = s;
}
d.confirm(c, function() {
window.location.href = o.href;
});
return false;
}
function pdel(frm) {
d = art.dialog;
var frm = frm;
var c = "<?php echo $_lang['you_comfirm_delete_operate'];?>";
d.confirm(c, function() {
$("#" + frm).submit();
});
return false;
}
function fdel(frm) {
d = art.dialog;
var frm = frm;
var c = "<?php echo $_lang['you_comfirm_delete_operate'];?>";
d.confirm(c, function() {
$("#" + frm).submit();
});
return false;
}
function batch_act(obj, frm) {
d = art.dialog;
var frm = frm;
var c = $(obj).val();
var conf = $(":checkbox[name='ckb[]']:checked").length;
if (conf > 0) {
d.confirm("<?php echo $_lang['confirm'];?>" + c + '?', function() {
$(".sbt_action").val(c);
$("#" + frm).submit();
});
} else {
d.alert("<?php echo $_lang['has_none_being_choose'];?>");
}
return false;
}
</script>
<!-- <?php if(KEKE_DEBUG) { ?>
<div
style="background-color: red; color: #fff; width: 400px; text-align: center;">
querys:
{eval echo db_factory::create()->get_query_num()}
&nbsp; times:
{eval echo kekezu::execute_time()}
</div>

<?php } ?> -->
</body>
</html><?php keke_tpl_class::ob_out();?>